<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::WeightedUnlabeledData&lt; DataT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_weighted_unlabeled_data-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle"><div class="title">shark::WeightedUnlabeledData&lt; DataT &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Weighted data set for unsupervised learning.  
 <a href="classshark_1_1_weighted_unlabeled_data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_weighted_dataset_8h_source.html">shark/Data/WeightedDataset.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::WeightedUnlabeledData&lt; DataT &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_weighted_unlabeled_data__inherit__graph.png" border="0" usemap="#ashark_1_1_weighted_unlabeled_data_3_01_data_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_weighted_unlabeled_data_3_01_data_t_01_4_inherit__map" id="ashark_1_1_weighted_unlabeled_data_3_01_data_t_01_4_inherit__map">
<area shape="rect" title="Weighted data set for unsupervised learning." alt="" coords="11,109,184,150"/>
<area shape="rect" title=" " alt="" coords="5,5,190,61"/>
<area shape="poly" title=" " alt="" coords="100,77,100,109,95,109,95,77"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a91d5113d9a6f67a6593d76e4a265cf51" id="r_a91d5113d9a6f67a6593d76e4a265cf51"><td class="memItemLeft" align="right" valign="top">typedef base_type::DataType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a91d5113d9a6f67a6593d76e4a265cf51">DataType</a></td></tr>
<tr class="separator:a91d5113d9a6f67a6593d76e4a265cf51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b55cb78df8d7a45a4bf3d8086f3a65f" id="r_a9b55cb78df8d7a45a4bf3d8086f3a65f"><td class="memItemLeft" align="right" valign="top">typedef base_type::WeightType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a9b55cb78df8d7a45a4bf3d8086f3a65f">WeightType</a></td></tr>
<tr class="separator:a9b55cb78df8d7a45a4bf3d8086f3a65f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7e005edba4dee30e735fcac0538f45" id="r_aed7e005edba4dee30e735fcac0538f45"><td class="memItemLeft" align="right" valign="top">typedef DataT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#aed7e005edba4dee30e735fcac0538f45">InputType</a></td></tr>
<tr class="separator:aed7e005edba4dee30e735fcac0538f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad6c78becf3a0a703a506f17d9535e0b9" id="r_ad6c78becf3a0a703a506f17d9535e0b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#ad6c78becf3a0a703a506f17d9535e0b9">BOOST_STATIC_CONSTANT</a> (std::size_t, DefaultBatchSize=<a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; DataT &gt;::DefaultBatchSize)</td></tr>
<tr class="separator:ad6c78becf3a0a703a506f17d9535e0b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab781cf87de5c135103795a0c44210b2b" id="r_ab781cf87de5c135103795a0c44210b2b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#ab781cf87de5c135103795a0c44210b2b">WeightedUnlabeledData</a> ()</td></tr>
<tr class="memdesc:ab781cf87de5c135103795a0c44210b2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty data set.  <br /></td></tr>
<tr class="separator:ab781cf87de5c135103795a0c44210b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9301c466c82723786aef62ab802a9a55" id="r_a9301c466c82723786aef62ab802a9a55"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a9301c466c82723786aef62ab802a9a55">WeightedUnlabeledData</a> (std::size_t numBatches)</td></tr>
<tr class="memdesc:a9301c466c82723786aef62ab802a9a55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty set with just the correct number of batches.  <br /></td></tr>
<tr class="separator:a9301c466c82723786aef62ab802a9a55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab16d53abba61cf2bb3af7a4f94c1d85b" id="r_ab16d53abba61cf2bb3af7a4f94c1d85b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#ab16d53abba61cf2bb3af7a4f94c1d85b">WeightedUnlabeledData</a> (std::size_t size, element_type const &amp;element, std::size_t <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">batchSize</a>=DefaultBatchSize)</td></tr>
<tr class="memdesc:ab16d53abba61cf2bb3af7a4f94c1d85b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor using a single element as blueprint to create a dataset with a specified number of elements.  <br /></td></tr>
<tr class="separator:ab16d53abba61cf2bb3af7a4f94c1d85b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29b5ac16bc4687d21baf574641025bf5" id="r_a29b5ac16bc4687d21baf574641025bf5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a29b5ac16bc4687d21baf574641025bf5">WeightedUnlabeledData</a> (<a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a91d5113d9a6f67a6593d76e4a265cf51">DataType</a> &gt; const &amp;data, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a9b55cb78df8d7a45a4bf3d8086f3a65f">WeightType</a> &gt; const &amp;weights)</td></tr>
<tr class="memdesc:a29b5ac16bc4687d21baf574641025bf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construction from data.  <br /></td></tr>
<tr class="separator:a29b5ac16bc4687d21baf574641025bf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5561feeee3c7bbd010c1da83bb7797b" id="r_ab5561feeee3c7bbd010c1da83bb7797b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#ab5561feeee3c7bbd010c1da83bb7797b">WeightedUnlabeledData</a> (<a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a91d5113d9a6f67a6593d76e4a265cf51">DataType</a> &gt; const &amp;data, double weight)</td></tr>
<tr class="memdesc:ab5561feeee3c7bbd010c1da83bb7797b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construction from data and a constant weight for all elements.  <br /></td></tr>
<tr class="separator:ab5561feeee3c7bbd010c1da83bb7797b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af30cf1f800bf899e55de467f9e211b52" id="r_af30cf1f800bf899e55de467f9e211b52"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; DataT &gt; const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#af30cf1f800bf899e55de467f9e211b52">inputs</a> () const</td></tr>
<tr class="memdesc:af30cf1f800bf899e55de467f9e211b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the inputs as a separate container.  <br /></td></tr>
<tr class="separator:af30cf1f800bf899e55de467f9e211b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40369ede148f5687ac274a7f6816809c" id="r_a40369ede148f5687ac274a7f6816809c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; DataT &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a40369ede148f5687ac274a7f6816809c">inputs</a> ()</td></tr>
<tr class="memdesc:a40369ede148f5687ac274a7f6816809c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the inputs as a separate container.  <br /></td></tr>
<tr class="separator:a40369ede148f5687ac274a7f6816809c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928b2414d9a32987c3341743dc0716e4" id="r_a928b2414d9a32987c3341743dc0716e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a928b2414d9a32987c3341743dc0716e4">shape</a> () const</td></tr>
<tr class="memdesc:a928b2414d9a32987c3341743dc0716e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the data.  <br /></td></tr>
<tr class="separator:a928b2414d9a32987c3341743dc0716e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58475c3c9b0480c96397c771a4a1759f" id="r_a58475c3c9b0480c96397c771a4a1759f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a58475c3c9b0480c96397c771a4a1759f">shape</a> ()</td></tr>
<tr class="memdesc:a58475c3c9b0480c96397c771a4a1759f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the data.  <br /></td></tr>
<tr class="separator:a58475c3c9b0480c96397c771a4a1759f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71bcad4364057b3d20b6315176d6b480" id="r_a71bcad4364057b3d20b6315176d6b480"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a71bcad4364057b3d20b6315176d6b480">splice</a> (std::size_t batch)</td></tr>
<tr class="memdesc:a71bcad4364057b3d20b6315176d6b480"><td class="mdescLeft">&#160;</td><td class="mdescRight">Splits the container into two independent parts. The left part remains in the container, the right is stored as return type.  <br /></td></tr>
<tr class="separator:a71bcad4364057b3d20b6315176d6b480"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aac37ab4ee3db2b92d744146f176b43c2" id="r_aac37ab4ee3db2b92d744146f176b43c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html#aac37ab4ee3db2b92d744146f176b43c2">swap</a> (<a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a> &amp;a, <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a> &amp;b)</td></tr>
<tr class="separator:aac37ab4ee3db2b92d744146f176b43c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class DataT&gt;<br />
class shark::WeightedUnlabeledData&lt; DataT &gt;</div><p>Weighted data set for unsupervised learning. </p>
<p>The <a class="el" href="classshark_1_1_weighted_unlabeled_data.html" title="Weighted data set for unsupervised learning.">WeightedUnlabeledData</a> class extends <a class="el" href="classshark_1_1_unlabeled_data.html" title="Data set for unsupervised learning.">UnlabeledData</a> for the representation of data. In addition it holds and provides access to the corresponding weights.</p>
<p><a class="el" href="classshark_1_1_weighted_unlabeled_data.html" title="Weighted data set for unsupervised learning.">WeightedUnlabeledData</a> tries to mimic the underlying data as pairs of data points and weights. this means that when accessing a batch by calling batch(i) or choosing one of the iterators one access the input batch by batch(i).data and the weights by batch(i).weight</p>
<p>this also holds true for single element access using operator(). Be aware, that direct access to element is a linear time operation. So it is not advisable to iterate over the elements, but instead iterate over the batches. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00446">446</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a91d5113d9a6f67a6593d76e4a265cf51" name="a91d5113d9a6f67a6593d76e4a265cf51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91d5113d9a6f67a6593d76e4a265cf51">&#9670;&#160;</a></span>DataType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef base_type::DataType <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::DataType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00453">453</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="aed7e005edba4dee30e735fcac0538f45" name="aed7e005edba4dee30e735fcac0538f45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed7e005edba4dee30e735fcac0538f45">&#9670;&#160;</a></span>InputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef DataT <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">::InputType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00456">456</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a9b55cb78df8d7a45a4bf3d8086f3a65f" name="a9b55cb78df8d7a45a4bf3d8086f3a65f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b55cb78df8d7a45a4bf3d8086f3a65f">&#9670;&#160;</a></span>WeightType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef base_type::WeightType <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00454">454</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab781cf87de5c135103795a0c44210b2b" name="ab781cf87de5c135103795a0c44210b2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab781cf87de5c135103795a0c44210b2b">&#9670;&#160;</a></span>WeightedUnlabeledData() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightedUnlabeledData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Empty data set. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00463">463</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a71bcad4364057b3d20b6315176d6b480">shark::WeightedUnlabeledData&lt; DataT &gt;::splice()</a>.</p>

</div>
</div>
<a id="a9301c466c82723786aef62ab802a9a55" name="a9301c466c82723786aef62ab802a9a55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9301c466c82723786aef62ab802a9a55">&#9670;&#160;</a></span>WeightedUnlabeledData() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightedUnlabeledData </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>numBatches</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create an empty set with just the correct number of batches. </p>
<p>The user must initialize the dataset after that by himself. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00469">469</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="ab16d53abba61cf2bb3af7a4f94c1d85b" name="ab16d53abba61cf2bb3af7a4f94c1d85b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab16d53abba61cf2bb3af7a4f94c1d85b">&#9670;&#160;</a></span>WeightedUnlabeledData() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightedUnlabeledData </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">element_type const &amp;&#160;</td>
          <td class="paramname"><em>element</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batchSize</em> = <code>DefaultBatchSize</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construtor using a single element as blueprint to create a dataset with a specified number of elements. </p>
<p>Optionally the desired batch Size can be set</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>the new size of the container </td></tr>
    <tr><td class="paramname">element</td><td>the blueprint element from which to create the Container </td></tr>
    <tr><td class="paramname">batchSize</td><td>the size of the batches. if this is 0, the size is unlimited </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00480">480</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a29b5ac16bc4687d21baf574641025bf5" name="a29b5ac16bc4687d21baf574641025bf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29b5ac16bc4687d21baf574641025bf5">&#9670;&#160;</a></span>WeightedUnlabeledData() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightedUnlabeledData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a91d5113d9a6f67a6593d76e4a265cf51">DataType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a9b55cb78df8d7a45a4bf3d8086f3a65f">WeightType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>weights</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construction from data. </p>
<p>Beware that when calling this constructor the organization of batches must be equal in both containers. This Constructor will not reorganize the data! </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00487">487</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="ab5561feeee3c7bbd010c1da83bb7797b" name="ab5561feeee3c7bbd010c1da83bb7797b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5561feeee3c7bbd010c1da83bb7797b">&#9670;&#160;</a></span>WeightedUnlabeledData() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::WeightedUnlabeledData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a91d5113d9a6f67a6593d76e4a265cf51">DataType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>weight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construction from data and a constant weight for all elements. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00492">492</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad6c78becf3a0a703a506f17d9535e0b9" name="ad6c78becf3a0a703a506f17d9535e0b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6c78becf3a0a703a506f17d9535e0b9">&#9670;&#160;</a></span>BOOST_STATIC_CONSTANT()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::BOOST_STATIC_CONSTANT </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DefaultBatchSize&#160;</td>
          <td class="paramname"> = <code><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt;&#160;DataT&#160;&gt;::DefaultBatchSize</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a40369ede148f5687ac274a7f6816809c" name="a40369ede148f5687ac274a7f6816809c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40369ede148f5687ac274a7f6816809c">&#9670;&#160;</a></span>inputs() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; DataT &gt; &amp; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::inputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the inputs as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00503">503</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="af30cf1f800bf899e55de467f9e211b52" name="af30cf1f800bf899e55de467f9e211b52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af30cf1f800bf899e55de467f9e211b52">&#9670;&#160;</a></span>inputs() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_unlabeled_data.html">UnlabeledData</a>&lt; DataT &gt; const  &amp; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::inputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the inputs as a separate container. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00499">499</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a58475c3c9b0480c96397c771a4a1759f" name="a58475c3c9b0480c96397c771a4a1759f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58475c3c9b0480c96397c771a4a1759f">&#9670;&#160;</a></span>shape() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> &amp; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::shape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the data. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00513">513</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a928b2414d9a32987c3341743dc0716e4" name="a928b2414d9a32987c3341743dc0716e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a928b2414d9a32987c3341743dc0716e4">&#9670;&#160;</a></span>shape() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> const  &amp; <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::shape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the data. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00508">508</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="namespaceshark.html#a78ea17b764fda3618970ff23a975ea3e">shark::bootstrap()</a>.</p>

</div>
</div>
<a id="a71bcad4364057b3d20b6315176d6b480" name="a71bcad4364057b3d20b6315176d6b480"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71bcad4364057b3d20b6315176d6b480">&#9670;&#160;</a></span>splice()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a> <a class="el" href="classshark_1_1_weighted_unlabeled_data.html">shark::WeightedUnlabeledData</a>&lt; DataT &gt;::splice </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Splits the container into two independent parts. The left part remains in the container, the right is stored as return type. </p>
<p>Order of elements remain unchanged. The SharedVector is not allowed to be shared for this to work. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00520">520</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a71bcad4364057b3d20b6315176d6b480">shark::WeightedUnlabeledData&lt; DataT &gt;::splice()</a>, and <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#ab781cf87de5c135103795a0c44210b2b">shark::WeightedUnlabeledData&lt; DataT &gt;::WeightedUnlabeledData()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_unlabeled_data.html#a71bcad4364057b3d20b6315176d6b480">shark::WeightedUnlabeledData&lt; DataT &gt;::splice()</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="aac37ab4ee3db2b92d744146f176b43c2" name="aac37ab4ee3db2b92d744146f176b43c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac37ab4ee3db2b92d744146f176b43c2">&#9670;&#160;</a></span>swap</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a>&lt; DataT &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_unlabeled_data.html">WeightedUnlabeledData</a>&lt; DataT &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00524">524</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Data/<a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
